// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription

let package = Package(
    name: "YXSilver",
    platforms: [.iOS(.v10)],
    products: [ .library(name: "YXSilver", targets: ["YXSilver"]) ],
    dependencies: [
        .package(name: "Kingfisher", url: "https://gitee.com/yxspecs/Kingfisher", from: "6.0.0"),
        .package(name: "IQKeyboardManagerSwift", url: "https://gitee.com/yxspecs/IQKeyboardManager", from: "6.5.0"),
        .package(name: "HandyJSON", url: "https://gitee.com/yxspecs/HandyJSON", from: "5.0.0"),
        .package(name: "UIColor_Hex_Swift", url: "git@gitee.com:yxspecs/UIColor-Hex-Swift.git", from: "5.0.0"),
        .package(name: "UITextView+Placeholder", url: "git@gitee.com:yxspecs/UITextView-Placeholder.git", from: "1.5.0"),
        .package(name: "ViewAnimator", url: "git@gitee.com:yxspecs/ViewAnimator.git", from: "3.0.0"),
        .package(name: "Promises", url: "git@gitee.com:yxspecs/promises.git", from: "1.2.12"),
        .package(name: "AnimationDeamon", url: "git@gitee.com:yxspecs/AnimationDeamon.git", from: "1.0.0"),
    ],
    targets: [
        .target(name: "YXSilver",
                dependencies: [
                    "Kingfisher",
                    "IQKeyboardManagerSwift",
                    "HandyJSON",
                    "UIColor_Hex_Swift",
                    "UITextView+Placeholder",
                    "ViewAnimator",
                    "Promises",
                    "AnimationDeamon",
                ], path: "Sources"),
        .testTarget(name: "YXSilverTests",dependencies: ["YXSilver"]),
    ]
)
